<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>
    <div class="div-top" ng-hide="form.sheet==undefined || form.sheet==undefined">
        <span style="font-size: 20px;float:left;">错误信息修改</span>
        <div style="float:right;">
            <button ng-click="clickBtn('update')" class="btn btn-warning"><i class="iconfont icon-update"></i>&nbsp;修改</button>
            <button ng-click="clickBtn('delete')" class="btn btn-danger"><i class="iconfont icon-delete"></i>&nbsp;删除</button>
            <button ng-click="goback()" class="btn btn-secondary"><i class="iconfont icon-back"></i>&nbsp;返回</button>
        </div>
    </div>

    <form class="div-find form-inline" >
        <div class="form-group">
            <label class="form-label">姓名：</label>
            <input ng-model="form.name" type="text" class="form-control" placeholder="家长姓名"/>
        </div>
        <div class="form-group">
            <label class="form-label">身份证：</label>
            <input ng-model="form.id_card" type="text" class="form-control" placeholder="身份证"/>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAlls($event.target)" /></th>
                <th column="name" class="sorting" ng-click="order($event.target)">姓名</th>
                <th column="id_card" class="sorting" ng-click="order($event.target)">身份证号</th>
                <th column="phone" class="sorting" ng-click="order($event.target)">电话</th>
                <th column="email" class="sorting" ng-click="order($event.target)">邮箱</th>
                <th column="stu" class="sorting" ng-click="order($event.target)">绑定学生</th>
                <th column="whcd" class="sorting" ng-click="order($event.target)">微信</th>
                <th column="whcd" class="sorting" ng-click="order($event.target)">解绑微信</th>
            </tr>
            </thead>

            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.name}}</td>
                <td>{{row.id_card}}</td>
                <td>{{row.phone}}</td>
                <td>{{row.email}}</td>
                <td><button ng-if="row.stu > 0" ng-click="findstu(row);" class="btn btn-sm btn-success">查看</button></td>
                <td><span ng-if="row.whcd == null">未绑定</span><span ng-if="row.whcd != null">已绑定</span></td>
                <td><button ng-if="row.whcd != null" ng-click="deletewx(row);" class="btn btn-warning btn-sm">解绑</button></td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>